package file;

import java.io.File;
import java.io.FileFilter;

/**
 * 访问目录，列取子项
 */
public class ListFilesDemo {
    /*
    public static void main(String[] args) {
        File file = new File(".");
        if (file.isDirectory()){
        File[] files = file.listFiles();
        for (File file1:files){
            System.out.println(file1.getName());
        }
    }else {
            System.out.println("不是目录");
        }
    }*/

    public static void main(String[] args) {
        FileFilter fileFilter = file->file.getName().startsWith(".");
    }




}
















